//
//  MCTableCell.m
//  MClient
//
//  Created by  史正烨 on 10-8-25.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "TableCellType1.h"


#pragma mark -- TableCellType1 -- 
@implementation TableCellType1

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier   {
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
		//标题
		lbTitle = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 150, 25)];
		lbTitle.textAlignment = UITextAlignmentLeft;
		lbTitle.tag = -1;
		lbTitle.font = [UIFont boldSystemFontOfSize:16];
		lbTitle.textColor = [UIColor blackColor];
		lbTitle.backgroundColor = [UIColor clearColor];
		[self.contentView addSubview:lbTitle];
		//内容
		lbValue = [[UILabel alloc] initWithFrame:CGRectMake(170, 10, 160, 25)];
		lbValue.textAlignment = UITextAlignmentLeft;
		lbValue.tag = -1;
		lbValue.font = [UIFont boldSystemFontOfSize:16];
		lbValue.textColor = [UIColor blackColor];
		lbValue.backgroundColor = [UIColor clearColor];
		[self.contentView addSubview:lbValue];
		self.selectionStyle = UITableViewCellSelectionStyleNone;
	}

    return self;
}
- (void)dealloc
{
	[lbTitle release];
	[lbValue release];
	[super dealloc];
}

- (void)show:(NSString*)aTitle withContent:(NSString*)aValue
{
	lbTitle.text = aTitle;
	lbValue.text = aValue;
}


@end
